package _6_Struct._6_4_decorator.printinvoice;

abstract public class OrderDecorator extends Order {
    /**
     * @link aggregation-聚合对象
     * @directed
     * @supplierCardinality 1
     * @clientCardinality 0..1
     */
    protected Order order;

    public OrderDecorator(Order order) {
        this.order = order;
        this.setSalesDate(order.getSalesDate());
        this.setCustomerName(order.getCustomerName());
    }

    public void print() {
        super.print();
    }
}
